package com.yfp.tissue.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yfp.tissue.domain.SysDeptCity;
import com.yfp.tissue.mapper.SysDeptCityMapper;
import com.yfp.tissue.service.SysDeptCityService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * @description 针对表【sys_dept_city(部门城市关联)】的数据库操作Service实现
 * @createDate 2024-11-15 11:29:29
 */
@Service
public class SysDeptCityServiceImpl extends ServiceImpl<SysDeptCityMapper, SysDeptCity> implements SysDeptCityService {

    @Resource
    private SysDeptCityMapper sysDeptCityMapper;

    @Override
    public List<SysDeptCity> getByDeptId(Long deptId) {
        return sysDeptCityMapper.getByDeptId(deptId);
    }

    @Override
    public SysDeptCity getByDeptIdAndCityName(Long deptId, String cityName) {
        return sysDeptCityMapper.getByDeptIdAndCityName(deptId, cityName);
    }
}




